package com.hzy.fivepalace.admin.config.pay;


import com.alipay.api.domain.AlipayTradeAppPayModel;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 支付宝支付配置
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "ali-apy")
public class AliPayProperties {

    /**
     * 支付appId
     */
    private String appId;

    /**
     * 商户公钥
     */
    private String publicKey;

    /**
     * 商户私钥
     */
    private String privateKey;

    /**
     * 回调地址
     */
    private String notifyUrl;

    /**
     * 应用公钥证书路径
     */
    private String publicKeyPath;

    /**
     * 支付宝公钥证书路径
     */
    private String publicKeyRsa2Path;

    /**
     * 支付宝CA根证书路径
     */
    private String rootCertPath;

    /**
     * 支付宝接口model
     */
    private AlipayTradeAppPayModel model;

}
